<?php

/**
 * Get bibliographic data and item status from an Innovative Interfaces Catalog. 
 * Conforms to the DLF ILS Discovery Interface Task Group (ILS-DI) Technical 
 * Recommendation 1.1.
 * 
 * @author David Walker
 * @copyright 2009 The California State University
 * @link http://xerxes.calstate.edu
 * @version 0.1
 * @package Shrew
 * @license http://www.gnu.org/licenses/
 */

class Xerxes_Voyager extends Xerxes_Z3950
{
	protected function parseHoldings(SimpleXMLElement $record)
	{
		$return = array();
		
		foreach ( $record->holdings->holding as $holding )
		{
			$item = new DLF_Item();
			$item->call_number = (string) $holding->callNumber;
			$item->location = (string) $holding->localLocation;
			
			$item->availabilitymsg = "Available";
			
			if ( $holding->availableNow["value"] != "1" )
			{
				$item->availabilitymsg = "Not Available";
			}
			
			array_push($return, $item);
		}
		
		return $return;
	}
}

?>
